<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/18
  Time: 10:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>


<head>
    <meta http-equiv="content-type" content="text/html" ;charset="gb2312">
    <title>CoolMeeting会议管理系统</title>
    <link rel="stylesheet" href="styles/common.css"/>
</head>

<body>

<div class="page-content">
    <div class="content-nav">
        个人中心 >
        <a href="notifications">最新通知</a>
    </div>
    <table class="listtable">
        <caption>
            未来7天我要参加的会议:
        </caption>

        <tr class="listheader">
            <th style="width:300px">会议名称</th>
            <th>会议室</th>
            <th>起始时间</th>
            <th>结束时间</th>
            <th style="width:100px">操作</th>
        </tr>
        <form action="${pageContext.request.contextPath}/SelectByNameMeetingServlet">

            <c:if test="${! empty(meetings)}">

                <c:forEach items="${meetings}" var="meeting">

                    <td>${meeting.getMeetingname()}</td>
                    <td>${meeting.getMeetingRoom().getRoomname()}</td>
                    <td>${meeting.getBegintime()}</td>
                    <td>${meeting.getEndtime()}</td>
                    <td>
                        <a class="clickbutton"
                           href="${pageContext.request.contextPath }/AllAttributeServlet?meetingname=${meeting.getMeetingname()}">查看详情</a>
                    </td>
                    </tr>
                </c:forEach>
            </c:if>
        </form>

    </table>
    <table class="listtable">
        <caption>
            已取消的会议:
        </caption>
        <tr class="listheader">
            <th style="width:300px">会议名称</th>
            <th>会议室</th>
            <th>起始时间</th>
            <th>结束时间</th>
            <th>取消原因</th>
            <th style="width:100px">操作</th>
        </tr>
        <c:if test="${! empty(meetings1)}">

            <c:forEach items="${meetings1}" var="meetingg">
                <tr>
                    <c:if test="${meetingg.meetingstatus ==2}">
                    <td>${meetingg.meetingname}</td>
                    <td>${meetingg.meetingRoom.roomname}</td>
                    <td>${meetingg.begintime}</td>
                    <td>${meetingg.endtime}</td>
                    <td>人员出差</td>
                    <td>
                        <a class="clickbutton"
                           href="${pageContext.request.contextPath }/AllAttributeServlet?meetingname=${meetingg.meetingname}">查看详情</a>
                    </td>
                    </c:if>
                </tr>
            </c:forEach>
        </c:if>
        </tr>
    </table>

</div>

</body>

</html>
